﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Profiles.aspx.vb" Inherits="HausaMathTermdev.Profiles" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:ListView ID="ListView1" runat="server" DataKeyNames="UserID" 
        DataSourceID="SqlDataSource1" GroupItemCount="3">
        <AlternatingItemTemplate>
            <td runat="server" style="background-color: #FFFFFF; color: #284775;">
                UserID:
                <asp:Label ID="UserIDLabel" runat="server" Text='<%# Eval("UserID") %>' />
                <br />
                firstname:
                <asp:Label ID="firstnameLabel" runat="server" Text='<%# Eval("firstname") %>' />
                <br />
                picture:
                <img alt="Profile Picure" width="100" height="100" src='../image/<%# Eval("Picture")%>' />
                <br />
                dateofbirth:
                <asp:Label ID="dateofbirthLabel" runat="server" Text='<%# Eval("dateofbirth") %>' />
                <br />
                lastname:
                <asp:Label ID="lastnameLabel" runat="server" Text='<%# Eval("lastname") %>' />
                <br />
                registrationdate:
                <asp:Label ID="registrationdateLabel" runat="server" Text='<%# Eval("registrationdate") %>' />
                <br />
                qualifications:
                <asp:Label ID="qualificationsLabel" runat="server" Text='<%# Eval("qualifications") %>' />
                <br />
                specilaisation:
                <asp:Label ID="specilaisationLabel" runat="server" Text='<%# Eval("specilaisation") %>' />
                <br />
                remark:
                <asp:Label ID="remarkLabel" runat="server" Text='<%# Eval("remark") %>' />
                <br />
                gender:
                <asp:Label ID="genderLabel" runat="server" Text='<%# Eval("gender") %>' />
                <br />
            </td>
        </AlternatingItemTemplate>
        <EmptyDataTemplate>
            <table runat="server" 
                style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;">
                <tr>
                    <td>
                        No data was returned.</td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <EmptyItemTemplate>
<td runat="server" />
        </EmptyItemTemplate>
        <GroupTemplate>
            <tr ID="itemPlaceholderContainer" runat="server">
                <td ID="itemPlaceholder" runat="server">
                </td>
            </tr>
        </GroupTemplate>
        <ItemTemplate>
            <td runat="server" style="background-color: #E0FFFF;color: #333333;">
                UserID:
                <asp:Label ID="UserIDLabel" runat="server" Text='<%# Eval("UserID") %>' />
                <br />firstname:
                <asp:Label ID="firstnameLabel" runat="server" Text='<%# Eval("firstname") %>' />
                <br />picture:
                <img alt="Profile Picure" width = "100" height = "100" src='../image/<%# Eval("Picture")%>'/>
                <br />dateofbirth:
                <asp:Label ID="dateofbirthLabel" runat="server" 
                    Text='<%# Eval("dateofbirth") %>' />
                <br />lastname:
                <asp:Label ID="lastnameLabel" runat="server" Text='<%# Eval("lastname") %>' />
                <br />registrationdate:
                <asp:Label ID="registrationdateLabel" runat="server" 
                    Text='<%# Eval("registrationdate") %>' />
                <br />qualifications:
                <asp:Label ID="qualificationsLabel" runat="server" 
                    Text='<%# Eval("qualifications") %>' />
                <br />specilaisation:
                <asp:Label ID="specilaisationLabel" runat="server" 
                    Text='<%# Eval("specilaisation") %>' />
                <br />remark:
                <asp:Label ID="remarkLabel" runat="server" Text='<%# Eval("remark") %>' />
                <br />gender:
                <asp:Label ID="genderLabel" runat="server" Text='<%# Eval("gender") %>' />
                <br />
            </td>
        </ItemTemplate>
        <LayoutTemplate>
            <table runat="server">
                <tr runat="server">
                    <td runat="server">
                        <table ID="groupPlaceholderContainer" runat="server" border="1" 
                            style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;font-family: Verdana, Arial, Helvetica, sans-serif;">
                            <tr ID="groupPlaceholder" runat="server">
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr runat="server">
                    <td runat="server" 
                        style="text-align: center;background-color: #5D7B9D;font-family: Verdana, Arial, Helvetica, sans-serif;color: #FFFFFF">
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
        <SelectedItemTemplate>
            <td runat="server" 
                style="background-color: #E2DED6;font-weight: bold;color: #333333;">
                UserID:
                <asp:Label ID="UserIDLabel" runat="server" Text='<%# Eval("UserID") %>' />
                <br />firstname:
                <asp:Label ID="firstnameLabel" runat="server" Text='<%# Eval("firstname") %>' />
                <br />picture:
                <asp:Label ID="pictureLabel" runat="server" Text='<%# Eval("picture") %>' />
                <br />dateofbirth:
                <asp:Label ID="dateofbirthLabel" runat="server" 
                    Text='<%# Eval("dateofbirth") %>' />
                <br />lastname:
                <asp:Label ID="lastnameLabel" runat="server" Text='<%# Eval("lastname") %>' />
                <br />registrationdate:
                <asp:Label ID="registrationdateLabel" runat="server" 
                    Text='<%# Eval("registrationdate") %>' />
                <br />qualifications:
                <asp:Label ID="qualificationsLabel" runat="server" 
                    Text='<%# Eval("qualifications") %>' />
                <br />specilaisation:
                <asp:Label ID="specilaisationLabel" runat="server" 
                    Text='<%# Eval("specilaisation") %>' />
                <br />remark:
                <asp:Label ID="remarkLabel" runat="server" Text='<%# Eval("remark") %>' />
                <br />gender:
                <asp:Label ID="genderLabel" runat="server" Text='<%# Eval("gender") %>' />
                <br />
            </td>
        </SelectedItemTemplate>
    </asp:ListView>


    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        SelectCommand="SELECT [UserID], [firstname], [picture], [dateofbirth], [lastname],[registrationdate], [qualifications], [specilaisation], [remark], [gender] FROM [Userprofile]">
    </asp:SqlDataSource>

</asp:Content>
